<template>
		<view class="wrap" >
			
			<swiper class="banner" :indicator-dots="true" :autoplay="true" circular interval='1500'>
				<swiper-item v-for="(item,index) in details" :key='index'>
					<image class="swiper-image" :src="item.image" mode="aspectFill"></image>
				</swiper-item>
			</swiper>
		</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		props:{
			details: {
				type :Array,
				default: null
			}
		},
		onLoad() {
			console.log("this.details: ",this.details);
		},
		methods:{
			
		}
	}
</script>

<style lang="scss" scoped>
	.banner{
		width: 690rpx;
		height: 300rpx;
		margin: 0 auto;
		overflow: hidden;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		swiper-item{
			width: 100%;
			height: 100%;
			overflow: hidden;
			.swiper-image{
				width: 100%;
				height: 100%;
			}
		}
	}
	.wrap {
		padding-top: 20rpx;
	}
</style>
